package org.sdp.pearproject.controller;


import org.sdp.pearproject.dto.request.*;
import org.sdp.pearproject.dto.response.*;
import org.sdp.pearproject.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: OrganizationSuperController
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-04
 * @Version: 1.0
 * Table: pear_organization
 * Comment:
 * 组织表
 */
public class OrganizationSuperController extends BaseController {
    @Autowired
    OrganizationService service;

    public Integer addOrganization(OrganizationAddRequest request) throws Exception {
        return service.addOrganization(request);
    }

    public Integer updateOrganization(OrganizationUpdateRequest request) throws Exception {
        return service.updateOrganization(request);
    }

    public Integer deleteOrganization(OrganizationDeleteRequest request) throws Exception {
        return service.deleteOrganization(request);
    }

    public OrganizationQueryResponse queryOrganization(OrganizationQueryRequest request) throws Exception {
        return service.queryOrganization(request);
    }

    public List<OrganizationQueryResponse> listOrganization(OrganizationQueryRequest request) throws Exception {
        return service.listOrganization(request);
    }

    public Integer countOrganization(OrganizationQueryRequest request) throws Exception {
        return service.countOrganization(request);
    }

    public BaseStatResponse statOrganization(OrganizationQueryRequest request) throws Exception {
        return service.statOrganization(request);
    }


}
